package com.szqhyxj.youxiangju.biz.partnerHome.equipment.subordinateList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.Button;
import android.widget.TextView;

import com.szqhyxj.youxiangju.BaseActivity;
import com.szqhyxj.youxiangju.R;
import com.szqhyxj.youxiangju.biz.partnerHome.equipment.PartnerEquipmentActivity;
import com.szqhyxj.youxiangju.sys.components.NavigationBar;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class ConfirmOutSuccessfulActivity extends BaseActivity implements NavigationBar.NavigationBarListener{

    @BindView(R.id.navigationBar)
    NavigationBar navigationBar;
    @BindView(R.id.content)
    TextView content;
    @BindView(R.id.achieve)
    Button achieve;

    public static void start(Activity activity){
        Intent intent = new Intent();
        intent.setClass(activity,ConfirmOutSuccessfulActivity.class);
        activity.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_confirm_out_successful);
        ButterKnife.bind(this);
        navigationBar.setNavigationBarListener(this);
    }

    @Override
    public void navigationLeft(){
        PartnerEquipmentActivity.start(this);
    }

    @Override
    public void navigationRight(){
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event){
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            PartnerEquipmentActivity.start(this);
        }
        return super.onKeyDown(keyCode, event);
    }

    @OnClick(R.id.achieve)
    public void onViewClicked(){
        PartnerEquipmentActivity.start(this);
    }
}
